/*设置版心*/
.container {
    width: 1200px;
    margin: 0 auto;
}

.active {
    color: #43240c;
    background-color: #fee44e;
}

body {
    background-color: #fcf7f7;

}

/*---------------------------------------------------*/
/*顶部搜索*/
#herder {
    height: 160px;
    width: 100%;
    color: white;

    .container {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

}


/*logo区域*/
#herder .herder_logo {
    margin-left: 20px;

    a {
        display: flex;

        img {
            width: 75px;
            height: 75px;
            float: left;
        }

        .logoFont {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            p {
                color: #43240c;
                font-size: 28px;
                line-height: 40px;
                font-weight: 600;
            }

            span {
                display: inline-block;
                font-size: 12px;
                line-height: 16px;
                transform: scale(.8);
                /*缩放0.8*/
                color: #43240c;
            }
        }
    }


}

/*搜索区域*/
#herder .herder_search {
    height: 46px;
    border: 2px solid #000;
    display: flex;
    border-radius: 34px;
    background: url(../static/images/search.png) no-repeat 10px 10px;
    background-size: 5%;


    input {
        width: 350px;
        margin-left: 50px;
        font-size: 16px;
        color: #43200c;
    }

    .searchBtn {
        width: 120px;
        height: 42px;
        margin: 2px 2px 2px;
        background-color: #fee44e;
        font-size: 16px;
        font-weight: 400px;
        color: #43200c;
        text-align: center;
        line-height: 38px;
        border-radius: 34px;
        cursor: pointer;
    }
}

/*优势图标*/
#herder .herder_advantage {
    width: 180px;
    height: 60px;
    margin-right: 40px;

    ul {
        height: 100%;
        display: flex;
        justify-content: space-between;

        li {
            width: 50px;
            height: 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;

            img {
                width: 40px;
                height: 40px;
            }

            p {
                font-size: 12px;
                line-height: 12px;
                color: #727171;
            }
        }
    }
}

//我的购物车
#herder .getCart {
    color: black;

    .myCart {
        margin: 0 auto;
        cursor: pointer;
        width: 100px;
        font-size: 16px;
        font-weight: bold;
        line-height: 40px;
        text-align: center;
        background-color: #f8cd8d;
        border: 1px solid #afadad;
        border-radius: 35px;
    }

}

/*---------------------------------------------------*/
/*nav*/
#nav {
    min-width: 1200px;
    height: 45px;
    background-color: #43240c;
    color: #fff;

    ul {
        display: flex;

        li {
            cursor: pointer;
            width: 160px;
            font-size: 16px;
            font-weight: 500;
            text-align: center;
            line-height: 45px;

            &:nth-child(1) {
                width: 220px;
            }

            &:hover {
                @extend .active;
            }
        }
    }
}

/*---------------------------------------------------*/
// 内容区
#main {
    display: flex;
    flex-direction: column;

    .main_top {
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;

        .product_info {
            width: 914px;
            height: 400px;
            background-color: #fff;
            display: flex;

            .photos {
                width: 282px;
                height: 340px;
                margin: 35px 26px;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                position: relative;
            }

            .productDetails {
                width: 534px;
                height: 340px;
                margin-top: 35px;
                margin-right: 46px;
                display: flex;
                flex-direction: column;
            }
        }


    }

    .cmd_detail {
        display: flex;
        flex-direction: column;
        width: 780px;

        img {
            width: 100%;
        }
    }
}

// 放大镜功能
#main .product_info .photos {
    .pic {
        cursor: pointer;
        width: 260px;
        height: 260px;
        margin: 0 auto;

        position: relative;
        border: 1px solid #c0bfbfd8;

        .mask {
            width: 100px;
            height: 100px;
            background-color: #d3e28e8c;
            position: absolute;
            left: 0;
            top: 0;
            display: none;
            pointer-events: none;
        }
    }

    .picList {
        display: flex;
        cursor: pointer;
        justify-content: space-around;

        div {
            width: 50px;
            height: 50px;
            margin: 2px;
        }
    }

    .bigGlass {
        width: 300px;
        height: 300px;
        border: 1px solid #c0bfbfd8;
        position: absolute;
        left: 300px;
        top: 0px;
        overflow: hidden;
        display: none;

        .bgPic {
            position: absolute;
            top: 200px;
            left: 100px;
        }
    }
}

// 小图选中效果
.pitchOn {
    border: 1px solid #000;
}


// 商品标题
#main .productDetails_title {
    font-size: 24px;
    color: #43240c;
    line-height: 32px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;

    img:nth-child(1) {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        margin-top: 6px;
    }

    img:nth-child(2) {
        width: 42px;
        height: 24px;
        margin-right: 6px;
        margin-top: 6px;
    }
}

// 商品价格
#main .productDetails_price {
    width: 530px;
    height: 87px;
    font-size: 16px;
    font-weight: 400;
    color: #b1a9a5;
    background-color: #f5f5f5;
    margin-top: 10px;

    .original-price {
        padding-top: 16px;
        padding-left: 16px;

        p {
            text-decoration: line-through;
        }
    }

    .last-price {
        font-size: 20px;
        color: #ff4653;
        line-height: 28px;
        background-color: #f5f5f5;
        margin-left: 16px;
        margin-top: 10px;
        display: flex;
        align-items: flex-end;

        .price {
            font-size: 40px;
            font-weight: 600;
            color: #fa585a;
            line-height: 28px;
            margin-left: 10px;
            margin-right: 20px;

            i {
                margin-right: -14px;
                font-size: 20px;
            }

            span {
                margin-left: -14px;
                font-size: 28px;
            }
        }

        .coupon-info {
            display: inline-block;
            height: 16px;
            background: #feeeee;
            border-radius: 2px;
            border: 1px solid #fa585a;
            font-size: 12px;
            text-align: center;
            line-height: 17px;
            margin-bottom: 6px;
        }

        .sale-num {
            width: 50px;
            flex: 1;
            text-align: end;
            font-size: 16px;
            font-weight: 400;
            color: #b1a9a5;
            line-height: 22px;
            margin-right: 27px;
        }
    }
}

// 优惠有效期
#main .expire-date {
    font-size: 14px;
    font-weight: 500;
    color: #fa585a;
    line-height: 20px;

    .shopNum {
        margin: 0 auto;
        width: 200px;

        input {
            margin-top: 20px;
            height: 20px;
            border: 1px solid #a3a0a0;
            cursor: pointer;
        }

        input[name='amount'] {
            text-align: center;
            width: 60px;
            cursor: text;
        }
    }

    p {
        margin-bottom: 27px;
        text-align: right;
    }
}

//加入购物车按钮和购买
#main .addCart_goBuy {
    display: flex;
    justify-content: space-between;

    button {
        display: block;
        height: 50px;
        border: none;
        border-radius: 4px;
        font-size: 18px;
        font-weight: 500;
        color: #fff;
        background-color: #fa585a;
        line-height: 25px;
        margin-top: 11px;
        cursor: pointer;
    }

    #addCart-btn {
        background-color: #eb7e3e;
        height: 30px;
        font-size: 16px;
    }
}


//卖家信息
#main .shop_info {
    width: 275px;
    height: 400px;
    background-color: #fff;
    border: 1px solid #fee44e;
    font-weight: 500;
    text-align: center;

    .storeInformation {
        line-height: 30px;
        width: 273px;
        height: 63px;
        background: linear-gradient(180deg, #fee44e, #fff 85%, #fff);

        .line {
            display: inline-block;
            width: 56px;
            height: 1px;
            opacity: .3;
            background: #43240c;
        }

        .tet {
            font-size: 14px;
            color: #43240c;
        }
    }

    .shop_image {
        width: 150px;
        height: 150px;
        border: 1px solid #000;
        margin: 3px auto 0;
    }

    .shop_name {
        font-size: 18px;
        color: #43240c;
        line-height: 25px;
    }

    .shop_score {
        width: 168px;
        height: 44px;
        margin: 9px auto 17px;

        .character {
            font-size: 14px;
            color: #b1a9a5;
            line-height: 20px;
            display: flex;
            justify-content: space-around;
        }

        .score {
            font-size: 14px;
            color: #fb9547;
            line-height: 20px;
            display: flex;
            justify-content: space-around;

        }
    }
}

// 回到顶部按钮
#backTopBtn {
    cursor: pointer;
    position: fixed;
    right: 50px;
    bottom: 320px;
    display: none;

    img {
        width: 60px;
        height: 60px;
    }
}

/*---------------------------------------------------*/
// 底部通栏
#footer {
    min-width: 1200px;
    height: 190px;
    padding-top: 50px;
    background-color: #484848;
    color: #fff;

    .content {
        width: 1200px;
        height: 120px;
        display: flex;

        img {
            width: 112px;
            height: 112px;
            margin-right: 20px;
        }

        .title {
            text-align: center;
            margin-top: 14px;
            margin-right: 260px;

            h1 {
                font-size: 36px;
                font-weight: 600px;
            }

            p {
                font-size: 18px;
                font-weight: 500px;
                line-height: 25px;
            }
        }
    }

    .record {
        display: flex;
        margin-top: 40px;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
            width: 22px;
            height: 22px;
            margin-left: 10px;
            margin-right: 10px;
        }

        p {
            line-height: 26px;
            font-size: 18px;
        }

        span {
            margin-left: 5px;
            margin-right: 5px;
        }
    }
}

// 底部下载APP按钮
#footer .content_top_right {
    p {
        font-size: 20px;
        line-height: 120px;

        span {
            margin-left: 20px;
            cursor: pointer;

            &:hover {
                color: #e95367;
            }
        }
    }
}

/*---------------------------------------------------*/
// 认证标识
#authenticationIcon {
    padding-bottom: 50px;
    text-align: center;

    a img {
        margin-top: 4px;
    }
}